using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using bookmeetingroom.Data.Entities;

namespace bookmeetingroom.Data.Entities {
    public class Feedback : EntityBase
    {
        [Key]
        [DatabaseGenerated (DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }

        [StringLength (500)]
        [Display (Name = "内容")]
        public string Content { get; set; }

        [Required]
        [ForeignKey ("User")]
        public int UserId { get; set; }

        public ApplicationUser User { get; set; }

    }
}